import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '@/views/Home.vue'
import Login from '@/views/Auth/Login.vue'
import Register from '@/views/Auth/Register.vue'
import PersonalIndex from '@/views/Personal/index.vue'
import PersonalEdit from '@/views/Personal/edit.vue'

Vue.use(VueRouter)

const routes = [{
  path: '/',
  name: 'Home',
  component: Home
}, {
  path: '/Login',
  component: Login
}, {
  path: '/Register',
  component: Register
}, {
  path: '/Personal',
  component: PersonalIndex,
  meta: {
    meedAuth: true
  }
}, {
  path: '/edit',
  component: PersonalEdit,
  meta: {
    meedAuth: true
  }
}]

const router = new VueRouter({
  routes
})

export default router